import { getGuideList } from "@/network/guide/service";
import { Component } from "react";
import { Props, State } from "./model";
export default class Service extends Component<Props,State>{
   
    state: Readonly<State>={
       
    };

    setGuideList=async()=>{

        try {
            const data = await getGuideList({
                id:this.props.history.location.state
            })
            this.setState({
                guideList:data
            })
        } catch (error) {
            console.log(error)
        }
    }

    componentWillMount=async()=>{
        this.setGuideList()
    }
}